package com.ruoyi.zq.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.zq.domin.ZqVolunteerTime;

/**
 * 志愿活动时长
 *
 * @Author: LoneyFeather
 * @Date: Created in 14:11 2021/12/28
 */
public interface VolunteerTimeService extends IService<ZqVolunteerTime> {


    /**
     * 查询某个用户的志愿服务时长
     * @param userId
     * @return
     */
    ZqVolunteerTime get(Long userId);

    /**
     *
     * @param userId
     * @param time 此次修改的志愿时长
     * @param volunteerTime 原来本次活动的志愿时长
     * @return
     */
    int addVolunteerTime(Long userId,int time,int volunteerTime);

}
